package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
	Image    string `gorm:"type:varchar(500)"`
	Name     string `gorm:"type:varchar(50)"`
}

type Novel struct {
	gorm.Model
	Title  string `gorm:"type:varchar(50)"`
	UserId int64  `gorm:"type:int(11)"`
	Image  string `gorm:"type:varchar(500)"`
}
